<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
    <script src="vue-router.js"></script>
</head>
<body>
<div id="hd">
<router-link to="/hdphp">hdphp</router-link>
    <router-link to="/hdcms">hdcms</router-link>
    <router-view></router-view>
</div>
<script>
    const hdphp={
        template:'<h1>hdphp</h1>'
    }
    const hdcms={
        template:'<h1>hdcms</h1>'
    }
    let route=new VueRouter({
        routes:[
            {path:'/hdphp',component:hdphp},
            {path:'/hdcms',component:hdcms}
        ]
    })
    var app=new Vue({
        el:'#hd',
        router:route,
        data:{}
    })
</script>
</body>
</html>